package com.jyh.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jyh.blog.dto.TalkBackDTO;
import com.jyh.blog.dto.TalkDTO;
import com.jyh.blog.entity.Talk;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (Talk)表数据库访问层
 *
 * @author jyh
 * @since 2023-02-13 16:26:44
 */
@Repository
public interface TalkDao extends BaseMapper<Talk> {
    List<TalkBackDTO> talkBackDTOList(@Param("current") Long current,@Param("size") Long size,@Param("status") Integer status);

    TalkBackDTO getTalkBackById(@Param("id") String talkId);

    List<TalkDTO> pageList(@Param("current") Long limitCurrent,@Param("size") Long size);

    TalkDTO getTalkById(@Param("talkId") String talkId);
}

